import request from "@/utils/request";
import qs from "qs";
export function getCategoryTree() {
  return request({
    url: "Category/CategoryTree",
    method: "get"
  });
}

export function getProductSpec(data) {
  return request({
    url: "ProductSpec/GetByPID?" + qs.stringify(data),
    method: "get"
  });
}

/**费用模板查询 */
export function query(data) {
  return request({
    url: "FeeTemplate/Query",
    method: "post",
    data
  });
}

/**费用模板编辑 */
export function updata(data) {
  return request({
    url: "FeeTemplate/Update",
    method: "post",
    data
  });
}

export default { getCategoryTree, getProductSpec, query, updata };
